package com.yb.guigu.pick.masterslave.service.impl;

import com.baomidou.mybatisplus.core.incrementer.DefaultIdentifierGenerator;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yb.guigu.pick.masterslave.entity.Demo;
import com.yb.guigu.pick.masterslave.mapper.DemoMapper;
import com.yb.guigu.pick.masterslave.service.IDemoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.LinkedHashMap;
import java.util.TreeMap;

/**
 * Copyright (C), 2022-2023, 姚兵
 * Author: 32210
 * Date: 2023/6/18 13:53
 * FileName: DemoServiceImpl
 * Description:
 */

@Service
@Slf4j
public class DemoServiceImpl extends ServiceImpl<DemoMapper, Demo> implements IDemoService {
    @Override
    public void myInsert() {

    }

    public static void main(String[] args) {
        TreeMap<Double, Integer> treeMap = new TreeMap<>();
        treeMap.put(1d,1 );
        treeMap.put(2d,2 );
        treeMap.put(3d,3 );
        Double integer = treeMap.ceilingKey(1.5d);
        System.out.println(integer);
    }
}
